package com.byxy.service.impl;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import com.byxy.dao.ProductDao;
import com.byxy.entity.Product;
import com.byxy.service.ProductService;

@Service
@Transactional
public class ProductServiceImpl implements ProductService {

	@Resource
	private ProductDao productDao;

	@Override
	public Product get(Integer id) {
		return productDao.getId(id);
	}

}
